const { insertOne, find } = require("../db/mongo_util");
const { collections } = require("../db/mongo_conf");

function insertUser(username, password) {
    return insertOne(collections.user, { username, password });
}

function getUser(username, password) {
    return find(collections.user, { username, password });
}

module.exports = {
    insertUser,
    getUser,
};
